package com.tl.juc.c1;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class StartAndRun {
    public static void main(String[] args) {
        Thread t1 = new Thread(() -> {
            System.out.println(Thread.currentThread().getName());
            log.info("2.子线程启动..");
        });
        log.info("1.开始创建线程..");
        // t1.run();
        t1.start();
        t1.setName("刘威。。。");
        log.info("3.主线程结束..");
    }
}
